﻿<Window x:Class="ProxyToggle.MainWindow"
        x:Name="_this"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="ProxyToggle"  ResizeMode="CanMinimize" Height="146" Width="225"
        xmlns:proxyToggle="clr-namespace:ProxyToggle" Icon="Images/toggle.ico" DataContext="{Binding ElementName=_this}">
    <Grid Margin="0,0,-8,-73"  Height="191" VerticalAlignment="Top"   Background="#FFFAFAFA">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="56*"/>
            <ColumnDefinition Width="171*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="0*"/>
            <RowDefinition/>
        </Grid.RowDefinitions>


        <TextBlock Text="Proxy Toggle" HorizontalAlignment="Left" Margin="9,10,0,10" FontWeight="Bold" FontFamily="/ProxyToggle;component/Fonts/#Helvetica Neue LT Com" FontSize="18" Grid.RowSpan="2" Grid.Column="1" />
        <Label Margin="20,46,167,111" Grid.RowSpan="2" Grid.ColumnSpan="2">Off</Label>
        <Label Margin="113,45,9,112" RenderTransformOrigin="0.5,0.5" Grid.RowSpan="2" Grid.Column="1">
            <Label.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="0.677"/>
                    <TranslateTransform/>
                </TransformGroup>
            </Label.RenderTransform> On
        </Label>
        <proxyToggle:HorizontalToggleSwitch 
            	Style="{StaticResource LightBulbToggleSwitchStyle}"  HorizontalAlignment="Left" Margin="44,51,0,116" IsChecked="{Binding IsChecked}"  Checked="HorizontalToggleSwitch_Checked" Unchecked="HorizontalToggleSwitch_Unchecked" Width="125" Grid.RowSpan="2" Grid.ColumnSpan="2">

            <proxyToggle:HorizontalToggleSwitch.UncheckedContent>
                <Image Source="/Images/lightOff.png" Height="32" Margin="0,-8,0,0" ToolTip="Proxy Off: Use this when connected to the public Internet i.e Hotel, Airport, Starbucks" ></Image>
            </proxyToggle:HorizontalToggleSwitch.UncheckedContent>
            <proxyToggle:HorizontalToggleSwitch.CheckedContent>
                <Image Source="/Images/lightOn.png" Height="32" Margin="4,-8,0,0" ToolTip="Proxy On: Use this setting when connected to your internal Network" />
            </proxyToggle:HorizontalToggleSwitch.CheckedContent>
        </proxyToggle:HorizontalToggleSwitch>

        <TextBlock Text="Proxy Toggle" HorizontalAlignment="Left" Margin="9,10,0,93" FontWeight="Bold" FontFamily="/ProxyToggle;component/Fonts/#Helvetica Neue LT Com" FontSize="18" Grid.RowSpan="2" Grid.Column="1" />
        <Label Content="Lamparth Consulting" Grid.Column="1" HorizontalAlignment="Left" Margin="9,80,0,0" Grid.RowSpan="2" VerticalAlignment="Top" RenderTransformOrigin="0.579,-0.038" FontSize="9" FontFamily="Trebuchet MS"/>

    </Grid>
</Window>
